/**
 * @program: 11.2
 * @description:
 * @author: 李鑫月
 * @create: 2021-11-02 19:35
 **/
public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();
        myLinkedList.AddLast(112);
        myLinkedList.AddLast(113);
        myLinkedList.AddLast(114);
        myLinkedList.AddLast(115);
        myLinkedList.AddLast(116);
        myLinkedList.AddLast(117);
        myLinkedList.AddFirst(12);
        myLinkedList.AddFirst(12);
        myLinkedList.AddFirst(12);
        myLinkedList.AddFirst(15);
//     myLinkedList.addIndex(5,88);
//     myLinkedList.removeAllKey(12);
        myLinkedList.display();
//        myLinkedList.reverseList();
        ListNode newhead=myLinkedList.reverseList2();
        myLinkedList.display2(newhead);
    }
}
